package com.thesis.manage.service.module.excel;

import com.github.crab2died.annotation.ExcelField;
import com.thesis.manage.service.utils.DateConverter;
import com.thesis.manage.service.utils.SexConverter;
import lombok.Data;

import java.util.Date;

/**
 * @author php
 * @date 2018/1/26
 */
@Data
public class TeacherExcel {
    /**
     * teacher_number 教师号
     */
    @ExcelField(title = "教师编号", order = 1)
    private String teacherNumber;

    /**
     * name 姓名
     */
    @ExcelField(title = "姓名", order = 2)
    private String name;

    /**
     * sex 性别
     */
    @ExcelField(title = "性别", order = 3, readConverter = SexConverter.class)
    private Integer sex;

    /**
     * borth 日期
     */
    @ExcelField(title = "出生日期", order = 4, readConverter = DateConverter.class)
    private Date borth;

    /**
     * college_id 院系id
     */
    @ExcelField(title = "学院", order = 5)
    private String collegeName;

    /**
     * image 头像
     */
    @ExcelField(title = "头像", order = 6)
    private String image;
    /**
     * phone 电话
     */
    @ExcelField(title = "电话", order = 7)
    private String phone;

    /**
     * email 邮箱
     */
    @ExcelField(title = "邮箱", order = 8)
    private String email;

    /**
     * idCard 密码
     */
    @ExcelField(title = "身份证", order = 9)
    private String idCard;
}
